package com.css.fxfzypg.modules.baseData.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * data_reservoir
 * @author 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReservoirEntity implements Serializable {
    /**
     * Id
     */
    private Integer resId;

    /**
     * 经度
     */
    @Excel(name = "经度")
    private Float resLongitude;

    /**
     * 纬度
     */
    @Excel(name = "纬度")
    private Float resLatitude;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String resName;

    /**
     * 规模
     */
    @Excel(name = "规模")
    private String resScale;

    /**
     * 库容量
（万立方米）
     */
    @Excel(name = "库容量（万立方米）")
    private Float resCapacity;

    /**
     * 结构类型
     */
    @Excel(name = "结构类型")
    private String resResultType;

    /**
     * 建造年代
     */
    @Excel(name = "建造年代")
    private String resTime;

    /**
     * 0表示删除1表示正常
     */
    private String isdelete;

    /**
     * 添加时间
     */
    private Date createTime;

    private String province;//省
    private String city;//市
    private String county;//区县
    private String fileUuid;//文件UUID
    private String geomText;//空间数据解析字符串
    private String id;//主键ID

    private static final long serialVersionUID = 1L;

    public Integer getResId() {
        return resId;
    }

    public void setResId(Integer resId) {
        this.resId = resId;
    }

    public Float getResLongitude() {
        return resLongitude;
    }

    public void setResLongitude(Float resLongitude) {
        this.resLongitude = resLongitude;
    }

    public Float getResLatitude() {
        return resLatitude;
    }

    public void setResLatitude(Float resLatitude) {
        this.resLatitude = resLatitude;
    }

    public String getResName() {
        return resName;
    }

    public void setResName(String resName) {
        this.resName = resName;
    }

    public String getResScale() {
        return resScale;
    }

    public void setResScale(String resScale) {
        this.resScale = resScale;
    }

    public Float getResCapacity() {
        return resCapacity;
    }

    public void setResCapacity(Float resCapacity) {
        this.resCapacity = resCapacity;
    }

    public String getResResultType() {
        return resResultType;
    }

    public void setResResultType(String resResultType) {
        this.resResultType = resResultType;
    }

    public String getResTime() {
        return resTime;
    }

    public void setResTime(String resTime) {
        this.resTime = resTime;
    }

    public String getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(String isdelete) {
        this.isdelete = isdelete;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ReservoirEntity other = (ReservoirEntity) that;
        return (this.getResId() == null ? other.getResId() == null : this.getResId().equals(other.getResId()))
            && (this.getResLongitude() == null ? other.getResLongitude() == null : this.getResLongitude().equals(other.getResLongitude()))
            && (this.getResLatitude() == null ? other.getResLatitude() == null : this.getResLatitude().equals(other.getResLatitude()))
            && (this.getResName() == null ? other.getResName() == null : this.getResName().equals(other.getResName()))
            && (this.getResScale() == null ? other.getResScale() == null : this.getResScale().equals(other.getResScale()))
            && (this.getResCapacity() == null ? other.getResCapacity() == null : this.getResCapacity().equals(other.getResCapacity()))
            && (this.getResResultType() == null ? other.getResResultType() == null : this.getResResultType().equals(other.getResResultType()))
            && (this.getResTime() == null ? other.getResTime() == null : this.getResTime().equals(other.getResTime()))
            && (this.getIsdelete() == null ? other.getIsdelete() == null : this.getIsdelete().equals(other.getIsdelete()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getResId() == null) ? 0 : getResId().hashCode());
        result = prime * result + ((getResLongitude() == null) ? 0 : getResLongitude().hashCode());
        result = prime * result + ((getResLatitude() == null) ? 0 : getResLatitude().hashCode());
        result = prime * result + ((getResName() == null) ? 0 : getResName().hashCode());
        result = prime * result + ((getResScale() == null) ? 0 : getResScale().hashCode());
        result = prime * result + ((getResCapacity() == null) ? 0 : getResCapacity().hashCode());
        result = prime * result + ((getResResultType() == null) ? 0 : getResResultType().hashCode());
        result = prime * result + ((getResTime() == null) ? 0 : getResTime().hashCode());
        result = prime * result + ((getIsdelete() == null) ? 0 : getIsdelete().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", resId=").append(resId);
        sb.append(", resLongitude=").append(resLongitude);
        sb.append(", resLatitude=").append(resLatitude);
        sb.append(", resName=").append(resName);
        sb.append(", resScale=").append(resScale);
        sb.append(", resCapacity=").append(resCapacity);
        sb.append(", resResultType=").append(resResultType);
        sb.append(", resTime=").append(resTime);
        sb.append(", isdelete=").append(isdelete);
        sb.append(", createTime=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}